﻿namespace PMS.Client.FrmReport
{
    using PMS.Client.Controls;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using PMS.Model;

    public class FrmSqlResult : Form
    {
        private IContainer components = null;
        private Label lbTitle;
        private UCDataGridView ucDataGridView1;

        public FrmSqlResult(List<User> list)
        {
            this.InitializeComponent();
            this.ucDataGridView1.DataSource = list;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmSqlResult));
            this.ucDataGridView1 = new UCDataGridView(this.components);
            this.lbTitle = new Label();
            ((ISupportInitialize) this.ucDataGridView1).BeginInit();
            base.SuspendLayout();
            this.ucDataGridView1.BackgroundColor = Color.FromArgb(0xa4, 0xc4, 0xeb);
            this.ucDataGridView1.BorderStyle = BorderStyle.None;
            this.ucDataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            style.Alignment = DataGridViewContentAlignment.MiddleLeft;
            style.BackColor = SystemColors.Window;
            style.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style.ForeColor = SystemColors.ControlText;
            style.SelectionBackColor = SystemColors.Highlight;
            style.SelectionForeColor = SystemColors.ControlText;
            style.WrapMode = DataGridViewTriState.False;
            this.ucDataGridView1.DefaultCellStyle = style;
            this.ucDataGridView1.Dock = DockStyle.Fill;
            this.ucDataGridView1.GridColor = Color.FromArgb(0xd0, 0xd7, 0xe5);
            this.ucDataGridView1.HighlightSelectedColumnHeaders = false;
            this.ucDataGridView1.Location = new Point(0, 0x1f);
            this.ucDataGridView1.Name = "ucDataGridView1";
            this.ucDataGridView1.RowTemplate.Height = 0x17;
            this.ucDataGridView1.Size = new Size(0x3c5, 0x1a5);
            this.ucDataGridView1.TabIndex = 0;
            this.lbTitle.BackColor = Color.Gold;
            this.lbTitle.Dock = DockStyle.Top;
            this.lbTitle.Font = new Font("宋体", 14.25f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lbTitle.ForeColor = Color.Black;
            this.lbTitle.Location = new Point(0, 0);
            this.lbTitle.Name = "lbTitle";
            this.lbTitle.Size = new Size(0x3c5, 0x1f);
            this.lbTitle.TabIndex = 0x39;
            this.lbTitle.Text = "SQL语句测试结果";
            this.lbTitle.TextAlign = ContentAlignment.MiddleCenter;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x3c5, 0x1c4);
            base.Controls.Add(this.ucDataGridView1);
            base.Controls.Add(this.lbTitle);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.Name = "FrmSqlResult";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "SQL语句测试结果";
            ((ISupportInitialize) this.ucDataGridView1).EndInit();
            base.ResumeLayout(false);
        }
    }
}

